package com.example.demo.entity;

import org.springframework.web.multipart.MultipartFile;

import java.io.File;
import java.util.Arrays;
import java.util.Date;

public class Info {
    /*基本信息*/
    private int id;  //序号
    private String title;  //标题
    private String username;  //发布信息者的用户名
    private String kind;  //信息种类（出售/出租）
    private String phone;  //联系方式
    /*共同信息*/
    private String floor;  //楼层（第几层/共几层）
    private String type;  //户型（几室几厅几卫)
    private String area;  ///*建筑面积*/
    private String elevator;  //有无电梯
    private String decoration;  //装修情况
    private String picture;  //照片（包括户型图等
    private Date   date;  //发布日期
    private String location;  //位置
    private int price;  //价格
    private String other;  //其他信息
    /*出售*/
    private String orientation;  //朝向
    private String rights;  //产权（公产还是私产）
    /*出租*/
    private String joint;  //整租/合租
    private String lease;  //最短租期*
    private String requirement;  //合租要求如合租只要女生
    private String furniture;  //家具家电情况

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getKind() {
        return kind;
    }

    public void setKind(String kind) {
        this.kind = kind;
    }

    public String getPicture() {
        return picture;
    }

    public void setPicture(String picture) {
        this.picture = picture;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getFloor() {
        return floor;
    }

    public void setFloor(String floor) {
        this.floor = floor;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    }

    public String getElevator() {
        return elevator;
    }

    public void setElevator(String elevator) {
        this.elevator = elevator;
    }

    public String getDecoration() {
        return decoration;
    }

    public void setDecoration(String decoration) {
        this.decoration = decoration;
    }

    public String getJoint() {
        return joint;
    }

    public void setJoint(String joint) {
        this.joint = joint;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public String getOther() {
        return other;
    }

    public void setOther(String other) {
        this.other = other;
    }

    public String getOrientation() {
        return orientation;
    }

    public void setOrientation(String orientation) {
        this.orientation = orientation;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    public String getRights() {
        return rights;
    }

    public void setRights(String rights) {
        this.rights = rights;
    }

    public String getLease() {
        return lease;
    }

    public void setLease(String lease) {
        this.lease = lease;
    }

    public String getRequirement() {
        return requirement;
    }

    public void setRequirement(String requirement) {
        this.requirement = requirement;
    }

    public String getFurniture() {
        return furniture;
    }

    public void setFurniture(String furniture) {
        this.furniture = furniture;
    }

    @Override
    public String toString() {
        return "Info{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", username='" + username + '\'' +
                ", kind='" + kind + '\'' +
                ", phone='" + phone + '\'' +
                ", floor='" + floor + '\'' +
                ", type='" + type + '\'' +
                ", area='" + area + '\'' +
                ", elevator='" + elevator + '\'' +
                ", decoration='" + decoration + '\'' +
                ", picture=" + picture +
                ", date=" + date +
                ", location='" + location + '\'' +
                ", price=" + price +
                ", other='" + other + '\'' +
                ", orientation='" + orientation + '\'' +
                ", rights='" + rights + '\'' +
                ", joint='" + joint + '\'' +
                ", lease='" + lease + '\'' +
                ", requirement='" + requirement + '\'' +
                ", furniture='" + furniture + '\'' +
                '}';
    }
}
